import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/productAttributeCategory/list',
    method:'get',
    params:params
  })
}

export function createProductAttrCate(data) {
  return request({
    url:'/productAttributeCategory/create',
    method:'post',
    data:data
  })
}

export function deleteProductAttrCate(id) {
  return request({
    url:'/productAttributeCategory/delete/'+id,
    method:'get'
  })
}

export function updateProductAttrCate(id,params) {
  return request({
    url:'/productAttributeCategory/update/'+id,
    method:'post',
    params:params
  })
}
export function fetchListWithAttr() {
  return request({
    url:'/productAttributeCategory/list/withAttr',
    method:'get'
  })
}
